Proxy standing in for something that shouldn't import until later
Example:
aModule = lazyImport('somePackage.aModule:')
Usage is like importString() , it just doesn't actually import
the item until you try to access an attribute of it. Note that
you can't use this in situations where you need the real object!
That is, if you need a real module (as is needed for a module's
__bases__ list), you can't use this. But if all you need is
to access attributes of the module, this will do just fine.
|